package com.lovo.order.controller;

import com.lovo.dto.TicketVo;
import com.lovo.order.service.IRemoteMovieService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MovieController {
    @Autowired
    IRemoteMovieService remoteMovieService;

    @GetMapping("updateMovieGet")
    public void updateMovie(){
        boolean bl=   remoteMovieService.updateMovieNum("heikediguo0",5);
        System.out.println(bl);
    }
    @GetMapping("updateMoviePost")
    public void updateMoviePost(){
        TicketVo t=new TicketVo();
      t.setMovieNumber("heikediguo0");
      t.setNum(3);
        boolean bl=remoteMovieService.updateMovieNumPost(t);
        System.out.println(bl);
    }
}
